package query

import (
    "ginweb/internal/domain/product"
)

type ProductService struct {
    repo product.ProductRepository
}

func NewProductService(repo product.ProductRepository) *ProductService {
    return &ProductService{repo: repo}
}

func (s *ProductService) GetProduct(id string) (*product.Product, error) {
    return s.repo.GetProduct(id)
}